import matplotlib.pyplot as plt

f=open('test2.txt','r')
f1 = open('process2.txt', 'r')

exp = []
gen = []
up = []
low = []
T = []

pt = []
pv =[]

for line in f:
    line = line.replace(',', '.')
    line = line.strip()
    vals = line.split(' ')
    T.append(float(vals[0]))
    low.append(float(vals[1]))
    up.append(float(vals[2]))
    exp.append(float(vals[3]))
    gen.append(float(vals[4]))

for line in f1:
    line = line.replace(',', '.')
    line = line.strip()
    vals = line.split(' ')
    pt.append(float(vals[0]))
    pv.append(float(vals[1]))

plt.figure(1)
plt.xlabel("t (sec)")
plt.ylabel("K")
plt.plot(T, low, c='r')
plt.plot(T, up, c='r')
plt.plot(T, exp, c='g')
plt.plot(T, gen, c='b')

plt.figure(2)
plt.plot(pt, pv)

plt.show()
